<template name="livechatTags">
	{{#if hasLicense}}
		{{#requiresPermission 'manage-livechat-tags'}}
			<div class="rc-table-content">
				{{#table fixed='true' onScroll=onTableScroll}}
					<thead>
						<tr>
							<th><div class="table-fake-th">{{_ "Name"}}</div></th>
							<th width="60%"><div class="table-fake-th">{{_ "Description"}}</div></th>
							<th width='40px'><div class="table-fake-th">&nbsp;</div></th>
						</tr>
					</thead>
					<tbody>
						{{#each tags}}
							<tr class="tag-info row-link" data-id="{{_id}}">
								<td><div class="rc-table-wrapper">
									<div class="rc-table-info"><span class="rc-table-title">{{name}}</span></div></div></td>
								<td>{{description}}</td>
								<td><a href="#remove" class="remove-tag"><i class="icon-trash"></i></a></td>
							</tr>
						{{/each}}
					</tbody>
				{{/table}}
			</div>
			<div class="rc-button__group">
				<a href="{{pathFor 'livechat-tag-new'}}" class="rc-button rc-button--primary">{{_ "New_Tag"}}</a>
			</div>
		{{/requiresPermission}}
	{{/if}}
</template>
